STEP 17: Let's add a response in case the user chooses neither a cone nor a sundae.

  • Go to and drag Else into the bottom of main(). Make sure it's indented just once!
  • Click on GRAPHICS and go to . Drag Say inside the else statement.
  • Change the say text to "Oops, that's not an option!"
  • Click Run and try requesting a milkshake. Maybe Ed will start making them soon!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)